package com.only4play.portal.cp.bean.message.xmlmessage;

import com.only4play.portal.cp.bean.message.AbstractCpOutMessage;
import com.only4play.portal.cp.bean.outbuilder.outxmlbuilder.XmlTextBuilder;
import com.only4play.portal.cp.config.CpConfigStorage;
import lombok.Getter;
import lombok.Setter;

/**
 * @author liyuncong
 * @version 1.0
 * @file PortalCpXmlOutMessage
 * @brief PortalCpXmlOutMessage
 * @details PortalCpXmlOutMessage
 * @date 2024-06-07
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-06-07               liyuncong          Created
 */

@Getter
@Setter
public abstract class CpXmlOutMessage extends AbstractCpOutMessage {

    protected String fromUserName;

    protected String toUserName;

    protected Long createdAt;

    protected String msgType;

    /**
     * 获得文本消息builder
     * @return
     */
    public static XmlTextBuilder TEXT() {
        return new XmlTextBuilder();
    }


    @Override
    public String toEncrypted(CpConfigStorage cpConfigStorage) {
        return null;
    }
}
